package com.sunlake.spring.main.model.auth.mapper;

import com.sunlake.spring.main.model.auth.po.UsersPO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.math.BigDecimal;

/**
* @author liuhanzhi49
* @description 针对表【users】的数据库操作Mapper
* @createDate 2025-09-23 15:10:49
* @Entity generator.domain.Users
*/
@Mapper
public interface UsersMapper {

    int deleteByPrimaryKey(Long id);

    int insert(UsersPO record);

    int insertSelective(UsersPO record);

    UsersPO selectByPrimaryKey(Long id);

    UsersPO selectByEmail(String email);

    UsersPO selectByUsername(String username);

    int updateByPrimaryKeySelective(UsersPO record);

    int updateByPrimaryKey(UsersPO record);
    int updateAccountBalance(@Param("id") Long id, @Param("balance") BigDecimal accountBalance);

}